package com.kitty.game.fight.message;

import com.kitty.mina.annotation.MessageMeta;
import com.kitty.mina.message.Message;

import static com.kitty.mina.Modules.MSG_C_CHAR_OFFLINE;

/**
 * 战斗发送
 */
@MessageMeta(module = MSG_C_CHAR_OFFLINE)
public class RespCharOffline extends Message {
    private int id;
    private short offOnline;//1下线 0重连上线

    public RespCharOffline(int id, int offOnline) {
        this.id = id;
        this.offOnline = (short) offOnline;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public short getOffOnline() {
        return offOnline;
    }

    public void setOffOnline(short offOnline) {
        this.offOnline = offOnline;
    }
}
